package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Setmeal;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SetmealDao {

    public void add(Setmeal setmeal);

    public Setmeal findById(Integer id);

    public Page<Setmeal> queryPage(String queryString);

    public long findCheckgroupidbysetmealid(Integer id);

    public int  delete(Integer id);

    public void update(Setmeal setmeal);

    public List<Setmeal> findAll();

    public void addSetmealandCheckgroup(@Param("setmeal_id")Integer setmealId,@Param("checkgroup_id")Integer checkgroupId);

    void deleteAssoicationsetmealid(Integer id);

     List<Integer> findcheckgroupIds(Integer setmealId);
}
